<?php

session_start();
include_once( 'config.php' );
include_once( 'weibooauth.php' );

$o = new WeiboOAuth( WB_AKEY , WB_SKEY , $_SESSION['keys']['oauth_token'] , $_SESSION['keys']['oauth_token_secret']  );
$last_key = $o->getAccessToken(  $_REQUEST['oauth_verifier'] ) ;
$_SESSION['last_key'] = $last_key;
?>

<form id="form1" name="form1" method="post" action="savename.php">
  <label>
    <input type="text" name="flight" />
  </label>
  <label>
    <input type="hidden" name="id" value="<?php echo $_SESSION['last_key']['user_id']; ?>"/>
  </label>
  <label>
    <input type="submit" name="submit" value="提交" />
  </label>
</form>